<?php

class Data_File_List {

    public $directory;
    public $files_paths_list = array();
    
    public function __construct($directory) {
        $this->directory = $directory;
    }
    
    function get_file_paths_list() {
        if ($handle = opendir($this->directory)) {
            while(false !== ($file = readdir($handle))) {
                if ($file != '.' && $file != '..') {
                    $this->files_paths_list[] = $this->directory . $file;
                }
            }
            closedir($handle);
        }
    }

}

?>
